<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@ include file="/commons/pages/taglibs.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>${naviString}</title>
<link href="${ctx}/commons/styles/themes/blue/styles/style.css" rel="stylesheet" type="text/css" />
<link href="${ctx}/commons/scripts/jquery-ui/themes/redmond/jquery-ui.custom.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div align="center">
  <div align="left" style="width:99%">
    <div align="left" class="nav">${naviString}</div>
    <br />
    <table width="100%" border="0" align="left" cellpadding="1" cellspacing="1" class="datagrid">
      <tr>
        <th colspan="2">订单信息</th>
      </tr>
      <tr>
        <td width="15%" class="title_item"><strong>促销活动：</strong></td>
        <td width="85%">${hf.map.title}</td>
      </tr>
      <tr>
        <td class="title_item"><strong>客户姓名：</strong></td>
        <td>${hf.map.name}</td>
      </tr>
      <tr>
        <td class="title_item"><strong>客户性别：</strong></td>
        <td><c:if test="${hf.map.sex eq 0}">先生</c:if>
          <c:if test="${hf.map.sex eq 1}">女士</c:if></td>
      </tr>
      <tr>
        <td class="title_item"><strong>手机号码：</strong></td>
        <td>${hf.map.mobile}</td>
      </tr>
      <tr>
        <td class="title_item"><strong>联系QQ：</strong></td>
        <td>${hf.map.qq}</td>
      </tr>
      <tr>
        <td class="title_item"><strong>送货地址：</strong></td>
        <td>${hf.map.address}</td>
      </tr>
      <tr>
        <td class="title_item"><strong>客户留言：</strong></td>
        <td><textarea style="border: none;width: 70%;" onfocus="this.blur()">${hf.map.memo}</textarea></td>
      </tr>
      <tr>
        <td class="title_item"><strong>订单时间：</strong></td>
        <td><fmt:formatDate value="${hf.map.create_time}" pattern="yyyy-MM-dd HH:mm:ss" /></td>
      </tr>
      <tr>
        <td class="title_item"><strong>订单总金额：</strong></td>
        <td>${hf.map.total_price}<c:if test="${not empty hf.map.total_price}">元</c:if></td>
      </tr>
      <tr>
        <td class="title_item"><strong>订单状态：</strong></td>
        <td><c:if test="${hf.map.state eq 0}">未处理</c:if>
          <c:if test="${hf.map.state eq 1}">已付订金</c:if>
          <c:if test="${hf.map.state eq 2}">已付全款</c:if>
          <c:if test="${hf.map.state eq 3}">取消订单</c:if>
          <c:if test="${hf.map.state eq 9}">其他</c:if>
          <c:if test="${hf.map.state eq 99}">已归档</c:if></td>
      </tr>
      <c:if test="${hf.map.mod_id ne 2902}">
        <tr>
          <td colspan="2"><table width="100%" border="0" align="left" cellpadding="0" cellspacing="1" class="datagrid">
              <tr class="title_tr">
                <td align="center" colspan="2">产品订单明细</td>
              </tr>
              <tr class="title_tr">
                <td nowrap="nowrap" width="30%">产品名称</td>
                <td nowrap="nowrap" width="60%">订购数量</td>
              </tr>
              <tbody id="intro_tbody">
                <c:forEach var="cur" items="${hf.map.productDetailList}">
                  <tr id="tr_${cur.id}">
                    <td align="center">${cur.product_name}[${cur.product_model}]</td>
                    <td align="center">${cur.num}</td>
                  </tr>
                </c:forEach>
              </tbody>
            </table></td>
        </tr>
      </c:if>
      <c:if test="${not empty dealInfolList}">
        <tr>
          <td colspan="2"><table width="100%" border="0" align="left" cellpadding="0" cellspacing="1" class="datagrid">
              <tr class="title_tr">
                <td align="center" colspan="5">订单处理记录</td>
              </tr>
              <tr class="title_tr">
                <td nowrap="nowrap" width="15%">处理人</td>
                <td nowrap="nowrap" width="15%">处理时间</td>
                <td nowrap="nowrap" width="15%">处理方式</td>
                <td nowrap="nowrap" width="20%">方式说明</td>
                <td nowrap="nowrap" width="35%">备忘说明</td>
              </tr>
              <tbody id="deal_tbody">
                <c:forEach var="d_cur" items="${dealInfolList}">
                  <tr>
                    <td align="center">${d_cur.deal_user_name}</td>
                    <td align="center"><fmt:formatDate value="${d_cur.deal_time}" pattern="yyyy-MM-dd HH:mm:ss" /></td>
                    <td align="center"><c:if test="${d_cur.deal_mode eq 1}">已付订金</c:if>
                      <c:if test="${d_cur.deal_mode eq 2}">已付全款</c:if>
                      <c:if test="${d_cur.deal_mode eq 3}">取消订单</c:if>
                      <c:if test="${d_cur.deal_mode eq 9}">其他</c:if>
                      <c:if test="${d_cur.deal_mode eq 99}">归档</c:if></td>
                    <td align="left">${d_cur.deal_mode_memo}</td>
                    <td align="left">${d_cur.memo}</td>
                  </tr>
                </c:forEach>
              </tbody>
            </table></td>
        </tr>
      </c:if>
      <tr>
        <td colspan="2" align="center"><html-el:button property="back" value=" 返 回 " onclick="history.back();" styleClass="ui-state-default ui-corner-all" style="cursor:pointer;" /></td>
      </tr>
    </table>
  </div>
</div>
<script type="text/javascript" src="${ctx}/commons/scripts/jquery.js"></script>
<script type="text/javascript">//<![CDATA[
$(document).ready(function(){
	$("input[type='submit'],input[type='reset'],input[type='button']").css({border: "1px solid"});
	
	$("textarea").each(function(){
		this.onpropertychange = function () {
			if (this.scrollHeight > 16) this.style.posHeight = this.scrollHeight;
		};
	}).css({color:"#000"});

});
//]]></script>
</body>
</html>
